package com.example.demo.utils;

import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


import java.util.List;

@Component
@Slf4j
public class SendEmailUtils {


    public void send(MailAccount account, List<String> toList, String subject, String content, boolean isHtml) {
        MailUtil.send(account, toList, subject, content, isHtml);
    }

    public void send(MailAccount account, List<String> toList, String subject, String content) {
        MailUtil.send(account, toList, subject, content, true);
    }


}
